package lab02.test37;

/**
 * Created by ASUS on 2017/11/20.
 */
public class Undergraduate extends Student {
    @Override
    public double Ifgraduate() {
        double average = (super.getChinese()+super.getMath()+super.getComputer())/3;
        System.out.print("这是本科生：");
        if (average> 60){
            System.out.println("可以取得学位证");
        }else System.out.println("不能取得学位证");
        System.out.print("平均分：");
        return average;
    }
    Undergraduate() {
        super();
    }
    Undergraduate(double chinese, double math, double computer) {
        super(chinese, math, computer);
    }
}
